import request from "@/utils/request";

export function getBottleList(data) {
  return request({
    url: "/bottle/inspect/list",
    method: "get",
    data,
  });
}

export function addBottle(data) {
  return request({
    url: "/bottle/inspect/add",
    method: "post",
    data,
  });
}

export function editBottle(data) {
  return request({
    url: "/bottle/inspect/edit",
    method: "put",
    data,
  });
}

export function deleteBottle(data) {
  return request({
    url: `/bottle/inspect/delete?id=${data.id}&type=${data.type}`,
    method: "delete",
  });
}

export function getBomProductList() {
  return request({
    url: "/purchase/bom/productname",
    method: "get",
  });
}

export function getCabinetList(data) {
  return request({
    url: "/purchase/pickingplanbill/cabinet/list",
    method: "get",
    data,
  });
}

export function getCuttingcodeList(data) {
  return request({
    url: "/purchase/pickingplanbill/cuttingcode/list",
    method: "get",
    data,
  });
}

export function getFlowInfo(data) {
  return request({
    url: "/flowInfo/list",
    method: "get",
    data,
  });
}
